.class public Lcom/estrongs/android/ui/theme/ThemeActivity;
.super Lcom/estrongs/android/ui/base/HomeAsBackActivity;
.source "ThemeActivity.java"

# interfaces
.implements Les/vk;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/ui/theme/ThemeActivity$g;
    }
.end annotation


# instance fields
.field private j:Lcom/estrongs/android/ui/theme/b;

.field private k:Landroid/widget/ListView;

.field private l:Lcom/estrongs/android/ui/adapter/h;

.field private m:Landroid/os/Handler;

.field private n:Ljava/lang/String;

.field private o:Z

.field private p:Landroid/widget/LinearLayout;

.field private q:Landroid/content/BroadcastReceiver;

.field private r:Landroid/content/BroadcastReceiver;

.field private s:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Lcom/estrongs/android/ui/theme/ThemeActivity$g;",
            ">;"
        }
    .end annotation
.end field

.field private t:Les/v00;

.field private u:Landroid/content/Context;

.field private v:Landroidx/appcompat/widget/Toolbar;

.field private w:Landroidx/appcompat/app/ActionBar;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;-><init>()V

    return-void
.end method

.method private G()V
    .locals 4

    .line 1
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 2
    new-instance v1, Lcom/estrongs/android/ui/theme/a;

    invoke-direct {v1}, Lcom/estrongs/android/ui/theme/a;-><init>()V

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f110a71

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/estrongs/android/ui/theme/a;->b:Ljava/lang/String;

    .line 4
    invoke-virtual {p0}, Landroid/app/Activity;->getPackageName()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/estrongs/android/ui/theme/a;->a:Ljava/lang/String;

    const/4 v2, 0x0

    .line 5
    iput v2, v1, Lcom/estrongs/android/ui/theme/a;->e:I

    .line 6
    invoke-interface {v0, v2, v1}, Ljava/util/List;->add(ILjava/lang/Object;)V

    .line 7
    invoke-direct {p0, v0}, Lcom/estrongs/android/ui/theme/ThemeActivity;->h(Ljava/util/List;)V

    .line 8
    invoke-direct {p0, v0}, Lcom/estrongs/android/ui/theme/ThemeActivity;->g(Ljava/util/List;)V

    .line 9
    invoke-direct {p0, v0}, Lcom/estrongs/android/ui/theme/ThemeActivity;->i(Ljava/util/List;)V

    .line 10
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/android/ui/theme/a;

    .line 11
    invoke-virtual {v2, p0}, Lcom/estrongs/android/ui/theme/a;->d(Landroid/content/Context;)V

    goto :goto_0

    .line 12
    :cond_0
    iget-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->j:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/theme/b;->a(Ljava/util/List;)V

    return-void
.end method

.method private H()V
    .locals 3

    .line 1
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    const-string v1, "page"

    const-string v2, "theme_page"

    .line 2
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 3
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v1

    const-string v2, "show"

    invoke-virtual {v1, v2, v0}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 4
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    :goto_0
    return-void
.end method

.method private I()V
    .locals 4
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "HandlerLeak"
        }
    .end annotation

    const v0, 0x7f090b7b

    .line 1
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->k:Landroid/widget/ListView;

    .line 2
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->j:Lcom/estrongs/android/ui/theme/b;

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->k:Landroid/widget/ListView;

    new-instance v1, Landroid/graphics/drawable/ColorDrawable;

    iget-object v2, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->j:Lcom/estrongs/android/ui/theme/b;

    const v3, 0x7f0601f6

    invoke-virtual {v2, v3}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v2

    invoke-direct {v1, v2}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setDivider(Landroid/graphics/drawable/Drawable;)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->k:Landroid/widget/ListView;

    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0700a3

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setDividerHeight(I)V

    .line 5
    invoke-direct {p0}, Lcom/estrongs/android/ui/theme/ThemeActivity;->J()V

    .line 6
    new-instance v0, Lcom/estrongs/android/ui/theme/ThemeActivity$d;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/theme/ThemeActivity$d;-><init>(Lcom/estrongs/android/ui/theme/ThemeActivity;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->m:Landroid/os/Handler;

    .line 7
    new-instance v0, Lcom/estrongs/android/ui/adapter/h;

    iget-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->m:Landroid/os/Handler;

    invoke-direct {v0, p0, v1}, Lcom/estrongs/android/ui/adapter/h;-><init>(Landroid/content/Context;Landroid/os/Handler;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->l:Lcom/estrongs/android/ui/adapter/h;

    .line 8
    iget-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->j:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {v1}, Lcom/estrongs/android/ui/theme/b;->j()Ljava/util/List;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->j:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {v2}, Lcom/estrongs/android/ui/theme/b;->d()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Lcom/estrongs/android/ui/adapter/h;->a(Ljava/util/List;I)V

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->k:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->l:Lcom/estrongs/android/ui/adapter/h;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    return-void
.end method

.method private J()V
    .locals 3

    const v0, 0x7f0904e9

    .line 1
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->p:Landroid/widget/LinearLayout;

    const/high16 v0, 0x41000000    # 8.0f

    .line 2
    invoke-static {p0, v0}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v0

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->p:Landroid/widget/LinearLayout;

    mul-int/lit8 v2, v0, 0x2

    invoke-virtual {v1, v2, v0, v2, v0}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->p:Landroid/widget/LinearLayout;

    new-instance v2, Lcom/estrongs/android/ui/theme/ThemeActivity$e;

    invoke-direct {v2, p0, v0}, Lcom/estrongs/android/ui/theme/ThemeActivity$e;-><init>(Lcom/estrongs/android/ui/theme/ThemeActivity;I)V

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->p:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/estrongs/android/ui/theme/ThemeActivity$f;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/theme/ThemeActivity$f;-><init>(Lcom/estrongs/android/ui/theme/ThemeActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/theme/ThemeActivity;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->o:Z

    return p0
.end method

.method static synthetic a(Lcom/estrongs/android/ui/theme/ThemeActivity;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->o:Z

    return p1
.end method

.method static synthetic b(Lcom/estrongs/android/ui/theme/ThemeActivity;)Landroid/widget/LinearLayout;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->p:Landroid/widget/LinearLayout;

    return-object p0
.end method

.method static synthetic c(Lcom/estrongs/android/ui/theme/ThemeActivity;)Lcom/estrongs/android/ui/adapter/h;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->l:Lcom/estrongs/android/ui/adapter/h;

    return-object p0
.end method

.method static synthetic d(Lcom/estrongs/android/ui/theme/ThemeActivity;)Lcom/estrongs/android/ui/theme/b;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->j:Lcom/estrongs/android/ui/theme/b;

    return-object p0
.end method

.method static synthetic e(Lcom/estrongs/android/ui/theme/ThemeActivity;)Les/v00;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->t:Les/v00;

    return-object p0
.end method

.method static synthetic f(Lcom/estrongs/android/ui/theme/ThemeActivity;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->n:Ljava/lang/String;

    return-object p0
.end method

.method private g(Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/estrongs/android/ui/theme/a;",
            ">;)V"
        }
    .end annotation

    .line 1
    new-instance v0, Lcom/estrongs/android/ui/theme/a;

    invoke-direct {v0}, Lcom/estrongs/android/ui/theme/a;-><init>()V

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f110a6b

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/estrongs/android/ui/theme/a;->b:Ljava/lang/String;

    .line 3
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    const-string v2, "lock_theme"

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/theme/b;->e(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/estrongs/android/ui/theme/a;->a:Ljava/lang/String;

    const/16 v1, 0x43

    .line 4
    iput v1, v0, Lcom/estrongs/android/ui/theme/a;->e:I

    const-string v1, "http://dl-es.doglobal.net/apk/signed_ESThemeDark-2.0.7-67.apk"

    .line 5
    iput-object v1, v0, Lcom/estrongs/android/ui/theme/a;->d:Ljava/lang/String;

    .line 6
    iput-object v2, v0, Lcom/estrongs/android/ui/theme/a;->v:Ljava/lang/String;

    const v1, 0x7f08096d

    .line 7
    iput v1, v0, Lcom/estrongs/android/ui/theme/a;->w:I

    .line 8
    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method private h(Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/estrongs/android/ui/theme/a;",
            ">;)V"
        }
    .end annotation

    .line 1
    new-instance v0, Lcom/estrongs/android/ui/theme/a;

    invoke-direct {v0}, Lcom/estrongs/android/ui/theme/a;-><init>()V

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f110980

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/estrongs/android/ui/theme/a;->b:Ljava/lang/String;

    .line 3
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    const-string v2, "lock_dawn_theme"

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/theme/b;->e(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/estrongs/android/ui/theme/a;->a:Ljava/lang/String;

    const/16 v1, 0x44

    .line 4
    iput v1, v0, Lcom/estrongs/android/ui/theme/a;->e:I

    const-string v1, "http://dl-es.doglobal.net/apk/estheme-1.0.1-68.apk"

    .line 5
    iput-object v1, v0, Lcom/estrongs/android/ui/theme/a;->d:Ljava/lang/String;

    .line 6
    iput-object v2, v0, Lcom/estrongs/android/ui/theme/a;->v:Ljava/lang/String;

    const v1, 0x7f08096e

    .line 7
    iput v1, v0, Lcom/estrongs/android/ui/theme/a;->w:I

    .line 8
    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method private i(Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/estrongs/android/ui/theme/a;",
            ">;)V"
        }
    .end annotation

    .line 1
    new-instance v0, Lcom/estrongs/android/ui/theme/a;

    invoke-direct {v0}, Lcom/estrongs/android/ui/theme/a;-><init>()V

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f110997

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/estrongs/android/ui/theme/a;->b:Ljava/lang/String;

    .line 3
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    const-string v2, "lock_summer_theme"

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/theme/b;->e(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/estrongs/android/ui/theme/a;->a:Ljava/lang/String;

    const/16 v1, 0x43

    .line 4
    iput v1, v0, Lcom/estrongs/android/ui/theme/a;->e:I

    .line 5
    iput-object v2, v0, Lcom/estrongs/android/ui/theme/a;->v:Ljava/lang/String;

    const-string v1, "http://dl-es.doglobal.net/apk/signed_ESThemeSummer-2.0.7-67.apk"

    .line 6
    iput-object v1, v0, Lcom/estrongs/android/ui/theme/a;->d:Ljava/lang/String;

    const v1, 0x7f08096f

    .line 7
    iput v1, v0, Lcom/estrongs/android/ui/theme/a;->w:I

    .line 8
    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method


# virtual methods
.method protected D()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public F()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->t:Les/v00;

    if-eqz v0, :cond_1

    .line 2
    invoke-virtual {v0}, Les/v00;->isEnabled()Z

    move-result v0

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->t:Les/v00;

    invoke-virtual {v1}, Les/v00;->d()I

    move-result v1

    .line 4
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    if-eqz v0, :cond_0

    if-eqz v1, :cond_1

    const/16 v0, 0xff

    .line 5
    invoke-virtual {v1, v0}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V

    goto :goto_0

    :cond_0
    if-eqz v1, :cond_1

    const/16 v0, 0x78

    .line 6
    invoke-virtual {v1, v0}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V

    :cond_1
    :goto_0
    return-void
.end method

.method public a(Z)V
    .locals 0

    if-eqz p1, :cond_0

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->l:Lcom/estrongs/android/ui/adapter/h;

    invoke-virtual {p1}, Landroid/widget/BaseAdapter;->notifyDataSetChanged()V

    :cond_0
    return-void
.end method

.method public synthetic e(Z)V
    .locals 0

    invoke-static {p0, p1}, Les/uk;->a(Les/vk;Z)V

    return-void
.end method

.method protected f(Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/v00;",
            ">;)V"
        }
    .end annotation

    .line 2
    new-instance v0, Les/v00;

    const v1, 0x7f08098e

    const v2, 0x7f110078

    invoke-direct {v0, v1, v2}, Les/v00;-><init>(II)V

    new-instance v1, Lcom/estrongs/android/ui/theme/ThemeActivity$c;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/theme/ThemeActivity$c;-><init>(Lcom/estrongs/android/ui/theme/ThemeActivity;)V

    .line 3
    invoke-virtual {v0, v1}, Les/v00;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;

    iput-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->t:Les/v00;

    .line 4
    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->t:Les/v00;

    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->v()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/ui/theme/b;->o()Z

    move-result v0

    xor-int/lit8 v0, v0, 0x1

    invoke-virtual {p1, v0}, Les/v00;->setEnabled(Z)Les/v00;

    .line 6
    invoke-virtual {p0}, Lcom/estrongs/android/ui/theme/ThemeActivity;->F()V

    return-void
.end method

.method public finish()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->j:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/theme/b;->j()Ljava/util/List;

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->l:Lcom/estrongs/android/ui/adapter/h;

    invoke-virtual {v1}, Lcom/estrongs/android/ui/adapter/h;->a()I

    move-result v1

    .line 3
    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/ui/theme/a;

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->j:Lcom/estrongs/android/ui/theme/b;

    iget-object v2, v0, Lcom/estrongs/android/ui/theme/a;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/theme/b;->a(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->j:Lcom/estrongs/android/ui/theme/b;

    iget-object v2, v0, Lcom/estrongs/android/ui/theme/a;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/theme/b;->f(Ljava/lang/String;)V

    .line 6
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->j:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {v1}, Lcom/estrongs/android/ui/theme/b;->e()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->n:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_2

    .line 7
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v1

    .line 8
    invoke-virtual {p0}, Landroid/app/Activity;->getPackageName()Ljava/lang/String;

    move-result-object v2

    iget-object v3, v0, Lcom/estrongs/android/ui/theme/a;->a:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    const-string v0, "using_theme_default"

    .line 9
    invoke-virtual {v1, v0}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;)V

    goto :goto_0

    :cond_1
    const-string v1, "com.estrongs.android.pop.dark"

    .line 10
    iget-object v0, v0, Lcom/estrongs/android/ui/theme/a;->a:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 11
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v0

    const-string v1, "theme_dark_on"

    const-string v2, "on"

    invoke-virtual {v0, v1, v2}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 12
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 13
    :cond_2
    :goto_0
    invoke-super {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method public synthetic h()V
    .locals 0

    invoke-static {p0}, Les/uk;->b(Les/vk;)V

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 0

    .line 1
    invoke-super {p0, p1, p2, p3}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onActivityResult(IILandroid/content/Intent;)V

    const/16 p3, 0x1024

    if-ne p1, p3, :cond_0

    const/4 p1, -0x1

    if-ne p2, p1, :cond_0

    .line 2
    invoke-virtual {p0, p1}, Landroid/app/Activity;->setResult(I)V

    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->v()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->j:Lcom/estrongs/android/ui/theme/b;

    .line 2
    invoke-virtual {v0}, Lcom/estrongs/android/ui/theme/b;->b()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->u:Landroid/content/Context;

    .line 3
    invoke-super {p0, p1}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->onCreate(Landroid/os/Bundle;)V

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->j:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {p1}, Lcom/estrongs/android/ui/theme/b;->e()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->n:Ljava/lang/String;

    const p1, 0x7f0c031b

    .line 5
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->setContentView(I)V

    const p1, 0x7f090754

    .line 6
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->j:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f060104

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/view/View;->setBackgroundColor(I)V

    const p1, 0x7f110658

    .line 8
    invoke-virtual {p0, p1}, Landroid/app/Activity;->setTitle(I)V

    const/4 p1, 0x0

    .line 9
    invoke-virtual {p0, p1}, Landroid/app/Activity;->setResult(I)V

    const v0, 0x7f090bdd

    .line 10
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroidx/appcompat/widget/Toolbar;

    iput-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->v:Landroidx/appcompat/widget/Toolbar;

    .line 11
    invoke-virtual {p0, v0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->setSupportActionBar(Landroidx/appcompat/widget/Toolbar;)V

    .line 12
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->w:Landroidx/appcompat/app/ActionBar;

    .line 13
    invoke-direct {p0}, Lcom/estrongs/android/ui/theme/ThemeActivity;->G()V

    .line 14
    invoke-static {}, Lcom/estrongs/android/util/f0;->d()Z

    move-result v0

    if-nez v0, :cond_0

    .line 15
    invoke-static {}, Lcom/estrongs/android/util/f0;->c()Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    const/4 p1, 0x1

    :cond_1
    iput-boolean p1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->o:Z

    .line 16
    invoke-direct {p0}, Lcom/estrongs/android/ui/theme/ThemeActivity;->I()V

    .line 17
    new-instance p1, Lcom/estrongs/android/ui/theme/ThemeActivity$a;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/theme/ThemeActivity$a;-><init>(Lcom/estrongs/android/ui/theme/ThemeActivity;)V

    iput-object p1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->q:Landroid/content/BroadcastReceiver;

    .line 18
    new-instance p1, Landroid/content/IntentFilter;

    invoke-direct {p1}, Landroid/content/IntentFilter;-><init>()V

    const-string v0, "android.net.conn.CONNECTIVITY_CHANGE"

    .line 19
    invoke-virtual {p1, v0}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    const-string v0, "android.net.wifi.STATE_CHANGE"

    .line 20
    invoke-virtual {p1, v0}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 21
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->q:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0, p1}, Landroid/app/Activity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 22
    new-instance p1, Lcom/estrongs/android/ui/theme/ThemeActivity$b;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/theme/ThemeActivity$b;-><init>(Lcom/estrongs/android/ui/theme/ThemeActivity;)V

    iput-object p1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->r:Landroid/content/BroadcastReceiver;

    .line 23
    new-instance p1, Landroid/content/IntentFilter;

    invoke-direct {p1}, Landroid/content/IntentFilter;-><init>()V

    const-string v0, "android.intent.action.PACKAGE_ADDED"

    .line 24
    invoke-virtual {p1, v0}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    const-string v0, "android.intent.action.PACKAGE_REMOVED"

    .line 25
    invoke-virtual {p1, v0}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    const-string v0, "package"

    .line 26
    invoke-virtual {p1, v0}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V

    .line 27
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->r:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0, p1}, Landroid/app/Activity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 28
    invoke-static {}, Lcom/estrongs/android/pop/app/premium/h;->a()Lcom/estrongs/android/pop/app/premium/h;

    move-result-object p1

    const-string v0, "theme"

    invoke-virtual {p1, p0, v0}, Lcom/estrongs/android/pop/app/premium/h;->a(Landroid/content/Context;Ljava/lang/String;)V

    .line 29
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object p1

    invoke-virtual {p1, p0}, Les/b00;->a(Les/vk;)V

    .line 30
    invoke-direct {p0}, Lcom/estrongs/android/ui/theme/ThemeActivity;->H()V

    return-void
.end method

.method protected onDestroy()V
    .locals 2

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onDestroy()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->q:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Landroid/app/Activity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->r:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Landroid/app/Activity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 4
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->s:Ljava/util/Map;

    if-eqz v0, :cond_0

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->s:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/ui/theme/ThemeActivity$g;

    .line 6
    invoke-virtual {p0, v1}, Landroid/app/Activity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 7
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 8
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->l:Lcom/estrongs/android/ui/adapter/h;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/adapter/h;->b()V

    .line 9
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object v0

    invoke-virtual {v0, p0}, Les/b00;->b(Les/vk;)V

    return-void
.end method

.method public synthetic onFinish()V
    .locals 0

    invoke-static {p0}, Les/uk;->a(Les/vk;)V

    return-void
.end method

.method protected onResume()V
    .locals 3

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onResume()V

    .line 2
    invoke-static {}, Lcom/estrongs/android/util/f0;->d()Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_1

    .line 3
    invoke-static {}, Lcom/estrongs/android/util/f0;->c()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 v0, 0x1

    :goto_1
    iput-boolean v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->o:Z

    .line 4
    iget-object v2, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->p:Landroid/widget/LinearLayout;

    if-eqz v0, :cond_2

    const/16 v0, 0x8

    goto :goto_2

    :cond_2
    const/4 v0, 0x0

    :goto_2
    invoke-virtual {v2, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->j:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/theme/b;->e()Ljava/lang/String;

    move-result-object v0

    .line 6
    invoke-static {p0, v0}, Lcom/estrongs/android/ui/theme/b;->a(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_3

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->l:Lcom/estrongs/android/ui/adapter/h;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/adapter/h;->a(I)V

    :cond_3
    return-void
.end method

.method protected onStart()V
    .locals 4

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->onStart()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->w:Landroidx/appcompat/app/ActionBar;

    iget-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeActivity;->j:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {p0}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->B()I

    move-result v2

    const v3, 0x7f060320

    invoke-virtual {v1, v2, v3}, Lcom/estrongs/android/ui/theme/b;->b(II)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/appcompat/app/ActionBar;->setHomeAsUpIndicator(Landroid/graphics/drawable/Drawable;)V

    return-void
.end method
